package com.interior.study.service.impl;

import com.interior.study.mapper.EmployeesMapper;
import com.interior.study.pojo.Employees;
import com.interior.study.service.EmployeesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EmployeesServiceImpl implements EmployeesService {

    @Resource
    private EmployeesMapper employeesMapper;

    /**
     * 查询所有员工
     */
    @Override
    public List<Employees> findEmpListAll() {
        return employeesMapper.findEmpListAll();
    }

    @Override
    public Employees findBylogin(String employeesid, String password) {
        return employeesMapper.findBylogin(employeesid,password);
    }

}
